package com.lyk.coursearrange.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("tb_jurisdiction")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Jurisdiction extends Model<Jurisdiction> {

private static final long serialVersionUID=1L;


    /**
     * 权限id
     */
    @TableId(value = "jur_id", type = IdType.AUTO)
    private Long jurId;
    /**
     * 菜单路径
     */
    private String jurUrl;
    /**
     * 权限类型
     */
    private String jurType;
    /**
     * 权限名称
     */
    private String jurTitle;
    /**
     * 父级权限
     */
    private Long jurParent;
    /**
     * 权限能力
     */
    private String jurName;
    /**
     * 菜单图标
     */
    private String jurIcon;



    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
